﻿using Himp.Platform.Api.Localization;
using Volo.Abp.Authorization.Permissions;
using Volo.Abp.Localization;

namespace Himp.Platform.Api.Permissions;

public class ApiPermissionDefinitionProvider : PermissionDefinitionProvider
{
    public override void Define(IPermissionDefinitionContext context)
    {
        var myGroup = context.AddGroup(ApiPermissions.GroupName, L("Permission:Api"));
    }

    private static LocalizableString L(string name)
    {
        return LocalizableString.Create<ApiResource>(name);
    }
}
